package ingsw2.functionality;

public class OrganisationalUnitVisitor implements IElementVisitor {

	@Override
	public void visitOrganisation(Organisation ou) {
		System.out.println("Organisation: " + ou.getName());
	}

	@Override
	public void visitDepartment(Department ou) {
		System.out.println("Department: " + ou.getName());
	}

	@Override
	public void visitSection(Section ou) {
		System.out.println("Section: " + ou.getName());
	}

	@Override
	public void visitOffice(Office ou) {
		System.out.println("Office #" + ou.getNumber());
	}

	@Override
	public void visitPerson(Person ou) {
		System.out.println("[" + ou.getRole() + "] " + ou.getFirstName() + " " + ou.getLastName());
	}

}
